java.lang.StringBuffer
StringBuffer r = new StringBuffer(); for (int i=0; i<limit; i+=1) { r.append(compute(i)); } return r.toString();